<style lang="less" scoped>
.exception {
  color: #505c6f;
  .wrap {
    height: 360px;
    position: absolute;
    right: 0px;
    left: 0px;
    top: 50%;
    margin-top: -180px;
    .imgBlock {
      text-align: right;
      width: 50%;
      float: left;
      padding-right: 64px;
    }
    .content {
      width: 50%;
      float: right;
      padding-top: 64px;
      h1 {
        font-size: 64px;
        line-height: 1.2;
      }
      .desc {
        font-size: 18px;
        line-height: 3;
      }
      .actions {
        .ant-btn {
          margin-right: 16px;
        }
      }
    }
  }
}
</style>

<template>
  <div class="exception">
    <div class="wrap">
      <div class="imgBlock">
        <NoFoundSvg />
      </div>
      <div class="content">
        <h1>404</h1>
        <div class="desc">
          抱歉，你访问的页面不存在或仍在开发中
        </div>
        <div class="actions">
          <a-button type="primary" @click="goBack">
            <i class="material-icons">&#xe5c4;</i>返回上一页
          </a-button>
          <a-button @click="goHome">
            <i class="material-icons">&#xe88a;</i>首页
          </a-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import NoFoundSvg from './static/404.svg'
export default {
  name: 'NotFound',
  components: {
    NoFoundSvg
  },
  methods: {
    goBack(){
      this.$router.go(-1)
    },
    goHome(){
      this.$router.push('/')
    }
  }
}
</script>